package tds.model14;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Client
 * @Description 客户端
 * @author tds
 * @Date 2020/1/20 16:20
 * @version 1.0.0
 */
public class Client {
    public static void main(String[] args) {
        // 构造器
        Builder builder1 = new ConcreteBuilder1();
        Builder builder2 = new ConcreteBuilder2();

        // 指挥者（负责复杂流程）
        Director director = new Director();
        director.construct(builder1);
        director.construct(builder2);

        // 具体产品
        Product product1 = builder1.getResult();
        Product product2 = builder2.getResult();

        product1.show();
        product2.show();
    }
}
